package com.zh.auth.domain.dto;

import com.zh.web.base.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "修改权限参数")
public class UpdatePermissionDto extends BaseDto implements Serializable {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "权限id", required = true)
    @NotNull(message = "权限id不能为空")
    private Long id;
    @ApiModelProperty("权限编码")
    private Integer permissionCode;
    @ApiModelProperty("权限名称")
    private String permissionName;
    @ApiModelProperty("权限描述")
    private String permissionDesc;
}
